package com.learnyou.server.xingzuo.dao.repository.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.learnyou.server.xingzuo.dao.model.BaseEntity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 操作日志记录
 * </p>
 *
 * @author heweifeng
 * @since 2022-11-21
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@TableName("sys_oper_log")
@ApiModel(value="SysOperLog对象", description="操作日志记录")
public class SysOperLog {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "接口编号")
    @TableField("oper_code")
    private Integer operCode;

    @ApiModelProperty(value = "模块标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "请求URL")
    @TableField("request_uri")
    private String requestUri;

    @ApiModelProperty(value = "主机地址")
    @TableField("ip_addr")
    private String ipAddr;

    @ApiModelProperty(value = "操作地点")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "使用浏览器")
    @TableField("browser")
    private String browser;

    @ApiModelProperty(value = "使用浏览器的版本")
    @TableField("browser_version")
    private String browserVersion;

    @ApiModelProperty(value = "使用操作系统")
    @TableField("os")
    private String os;

    @ApiModelProperty(value = "操作时间")
    @TableField("oper_time")
    private Date operTime;


}
